package com.maybach.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.common.model.ShippingOrderDO;
import com.maybach.common.query.ShippingOrderQuery;

import java.util.List;


/**
 * Manager for ShippingOrder.
 */
public interface ShippingOrderManager {
    /**
     * query count by query condition.
     */
    int countByQuery(ShippingOrderQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(ShippingOrderQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(ShippingOrderDO record);

    /**
     * insert selective.
     */
    long insertSelective(ShippingOrderDO record);

    /**
     * select by query condition.
     */
    List<ShippingOrderDO> selectByQuery(ShippingOrderQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<ShippingOrderDO> selectByQueryWithPage(ShippingOrderQuery query);

    /**
     * select by primary key.
     */
    ShippingOrderDO selectByPrimaryKey(Long id);

    /**
     * 根据订单号查询物流信息
     * @param outOrderId
     * @return
     */
    ShippingOrderDO selectByOutOrderId(Long outOrderId);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( ShippingOrderDO record,  ShippingOrderQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(ShippingOrderDO record, ShippingOrderQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(ShippingOrderDO record);
}